package Homework05;

public class Test {
    public static void main(String[] args) {
        Peasant tom = new Peasant("Tom", 4000);
        Scientist jack = new Scientist("jack", 200000);
        jack.setBonus(4000);
        Teacher mary = new Teacher("mary", 10000);
        mary.printSal();

        mary.setDaySal(400);
        mary.setDay(100);
        mary.printSal();

        Waiter smith = new Waiter("smith", 7000);
        Worker rob = new Worker("rob", 8000);

        tom.printSal();
        jack.printSal();

    }
}
